package com.zoe.aop.controller;

import cn.hutool.core.util.IdUtil;
import com.zoe.aop.annotation.OperatorLog;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zoe.Zhang
 * @date 2023/03/01
 * @description
 */
@RestController
@Slf4j
public class HelloController {
    @GetMapping("/hello")
    @OperatorLog
    public String hello() {
        log.info("111");
        return IdUtil.fastSimpleUUID();
    }
}
